﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRealizarOrdenCompra.aspx.cs" Inherits="SISLOG.Web.frmRealizarOrdenCompra" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="FormView1" runat="server" 
        DataSourceID="ObjectDataSourceRealizarOrdenCompra" DefaultMode="Insert">
        <EditItemTemplate>
            idOrdenCompra:
            <asp:TextBox ID="idOrdenCompraTextBox" runat="server" 
                Text='<%# Bind("idOrdenCompra") %>' />
            <br />
            fechaOrdenCompra:
            <asp:TextBox ID="fechaOrdenCompraTextBox" runat="server" 
                Text='<%# Bind("fechaOrdenCompra") %>' />
            <br />
            responsable:
            <asp:TextBox ID="responsableTextBox" runat="server" 
                Text='<%# Bind("responsable") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                CommandName="Update" Text="Actualizar" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </EditItemTemplate>
        <InsertItemTemplate>
            idOrdenCompra:
            <asp:TextBox ID="idOrdenCompraTextBox" runat="server" 
                Text='<%# Bind("idOrdenCompra") %>' />
            <br />
            fechaOrdenCompra:
            <asp:TextBox ID="fechaOrdenCompraTextBox" runat="server" 
                Text='<%# Bind("fechaOrdenCompra", "{0:d}") %>' />
            <br />
            responsable:
            <asp:TextBox ID="responsableTextBox" runat="server" 
                Text='<%# Bind("responsable") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insertar" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </InsertItemTemplate>
        <ItemTemplate>
            idOrdenCompra:
            <asp:Label ID="idOrdenCompraLabel" runat="server" 
                Text='<%# Bind("idOrdenCompra") %>' />
            <br />
            fechaOrdenCompra:
            <asp:Label ID="fechaOrdenCompraLabel" runat="server" 
                Text='<%# Bind("fechaOrdenCompra") %>' />
            <br />
            responsable:
            <asp:Label ID="responsableLabel" runat="server" 
                Text='<%# Bind("responsable") %>' />
            <br />

        </ItemTemplate>
    </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSourceRealizarOrdenCompra" runat="server" 
        DataObjectTypeName="SISLOG.BusinessEntities.OrdenCompra" 
        InsertMethod="RealizarOrdenCompra" 
        onobjectcreating="ObjectDataSourceRealizarOrdenCompra_ObjectCreating" 
        onselecting="ObjectDataSourceRealizarOrdenCompra_Selecting" 
        SelectMethod="GetAllFromOrdenCompra" 
        TypeName="SISLOG.BusinessLogic.OrdenCompraBL" 
        UpdateMethod="RealizarOrdenCompra"></asp:ObjectDataSource>
</asp:Content>
